﻿@model QLNH.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}

<!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN CONTENT -->
    <div class="page-content-wrapper">
        <div class="page-content">
            <!-- BEGIN PAGE CONTENT-->
            <div class="row">
                <div class="col-xs-8 col-xs-offset-2">
                    @using (Html.BeginForm("Login", "Home", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @id = "loginForm", @class = "form-login", role = "form" }))
                    {
                        @Html.AntiForgeryToken()
                        <div class="logo-login">
                            <img src="~/Content/assets/img/logo.png" alt="" />
                        </div>
                        <div class="form-login-content">
                            @Html.ValidationSummary(true)
                            <div class="form-group">
                                <label class="control-label">ユーザID</label>
                                <div class="input-icon">
                                    <i class="icon-user" style="padding-top: 2px;"></i>
                                    @Html.TextBoxFor(m => m.UserName, new { @id = "tea_user_id", @class = "form-control", @style = "ime-mode:disabled;", @maxlength = "10" })
                                    @Html.ValidationMessageFor(m => m.UserName)
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label">パスワード</label>
                                <div class="input-icon">
                                    <i class="icon-key" style="padding-top: 2px;"></i>
                                    @Html.PasswordFor(m => m.Password, new { @id = "tea_passeord", @class = "form-control", @style = "ime-mode:disabled;", @maxlength = "10" })
                                    @Html.ValidationMessageFor(m => m.Password)
                                </div>
                            </div>
                            <div class="form-group last">
                                <a id="btn_login" class="btn btn-success btn-md" onclick="$('#loginForm').submit()"><i class="icon-login"></i> &nbsp; ログイン</a>
                                <a id="btn_end" class="btn btn-default pull-right btn-md" onclick="self.window.close();">終了</a>
                            </div>
                        </div>
                    }
                </div>
            </div>
            <!-- END PAGE CONTENT-->
        </div>
    </div>
    <!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
